projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a2c29b
)
Fix indentation of XML comments
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 10 May 2025 10:11:22 +0000
(13:11 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 10 May 2025 10:11:22 +0000
(13:11 +0300)
* lisp/nxml/nxml-mode.el (nxml-compute-indent-in-delimited-token):
Fix indentation in XML comments with empty lines. Patch by John
Ciolfi <ciolfi@mathworks.com>. (Bug#73206)
lisp/nxml/nxml-mode.el
patch
|
blob
|
history
diff --git
a/lisp/nxml/nxml-mode.el
b/lisp/nxml/nxml-mode.el
index 7acc19b90586f1edaddf71c5c299c55ce6ed98b8..1d2471cc1fa1b20eaffc63832664353f28f1e760 100644
(file)
--- a/
lisp/nxml/nxml-mode.el
+++ b/
lisp/nxml/nxml-mode.el
@@
-1522,6
+1522,8
@@
of the line. This expects the xmltok-* variables to be set up as by
((progn
(goto-char pos)
(forward-line -1)
+ (while (looking-at "^[[:blank:]]*$")
+ (forward-line -1))
(<= (point) xmltok-start))
(goto-char (+ xmltok-start (length open-delim)))
(when (and (string= open-delim "<!--")